package se.webbzon.boltzmann.editor.factory.worldobject;

import java.awt.Color;

import se.webbzon.boltzmann.game.object.platform.Platform;
import se.webbzon.boltzmann.game.object.waypoint.PathProgramEnum;
import se.webbzon.boltzmann.object.geometry.GeometryAppearance;
import se.webbzon.boltzmann.object.geometry.GeometryEnum;
import se.webbzon.boltzmann.object.geometry.GeometryMask;
import se.webbzon.oschi01.worldobject.WorldObject;
import se.webbzon.oschi01.worldobject.appearance.Appearance3DException;

public class PlatformFactory implements WorldObjectFactory {
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override public WorldObject makeWorldObject() {
		GeometryMask mask = new GeometryMask(GeometryEnum.CUBE,false,18);
		GeometryAppearance appearance = new GeometryAppearance( GeometryEnum.CUBE,
																false, 18, false,
																0, "", 
																0, 0, 0, 0, 0, 
																Color.white, 0, 1, 1, 
																0, 0, 0);
		try {
			return new Platform(appearance, true, mask, true, true, 
								PathProgramEnum.ONE_WAY, null);
		} catch (Appearance3DException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override public String getName() {
		return "Platform";
	}

}
